package com.kcsj.domain;

import com.kcsj.domain.user.Customer;
import lombok.*;

import java.util.Collection;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    private String orderNo;
    private String address;
    private double cost;
    private String phoneNumber;
    //收货人姓名
    private String consigneeName;
    private String createDatetime;
    private String orderStatus;
    private PayType payType;
    private Collection<ProductModel> productModels;
    private Customer customer;
    private DelayedApplication delayedApplication;
    private Boolean show;

    public Order(String orderNo, String address, double cost,
                 String phoneNumber, String consigneeName,
                 String createDatetime, String orderStatus,
                 PayType payType, Collection<ProductModel> productModels,
                 Customer customer, DelayedApplication delayedApplication) {
        this.orderNo = orderNo;
        this.address = address;
        this.cost = cost;
        this.phoneNumber = phoneNumber;
        this.consigneeName = consigneeName;
        this.createDatetime = createDatetime;
        this.orderStatus = orderStatus;
        this.payType = payType;
        this.productModels = productModels;
        this.customer = customer;
        this.delayedApplication = delayedApplication;
    }
}
